package com.green.dao.manage;

import java.util.List;
import java.util.Map;

import com.green.common.page.Pagination;
import com.green.dao.BaseDao;
import com.green.model.manage.Person;
import com.green.model.manage.enums.PositionEnum;

public interface PersonDao extends BaseDao{

	List<Person> getLoginUser(Map<String,Object> map);

	int insertPerson(Person ct);

	int updatePerson(Person ct);	

	int deletePerson(Map<String, Object> param);

	Person getPersonById(String id);
	
	List<Person> getPersonList(Map<String, Object> param);
	
	Pagination<Person> getPersonPagination(Pagination<Person> pag,Map<String, Object> param);
	
	Pagination<Person> getAreaPersonPagination(Pagination<Person> pag,Map<String, Object> param);
	
	public  List<Person> queryPersons(Map<String, Object> param);

	public List<Person> queryCitymanager(Map<String,Object> param);
	
	public Person queryPersonByCity(String cityName,PositionEnum position);
	
	public Person getPersonParentOrgId(String personId);
	
	public Person getPersonParentPersonId(String personId);
}
